package me.sealer.ssm.service;

import me.sealer.ssm.model.User;

import java.util.List;

/**
 * @author sealer
 * @date 2016/09/27
 */
public interface UserService {

    /**
     * 查找所有用户
     *
     * @return
     * @throws Exception
     */
    List<User> queryUserList() throws Exception;

    /**
     * 根据用户名查找密码
     * @param username
     * @return
     */
    User findUserByUsername(String username);

    /**
     * 更新用户
     * @param user
     */
    void updateUser(User user);

    boolean insert(User user);

    User findUserByPhoneNumber(String phoneNumber);

    boolean createUser(User user);

    User findUserByEmail(String email);
}

